package com.lwc.cfdns.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.lwc.cfdns.pojo.bo.system.GroupBO;
import com.lwc.cfdns.pojo.dto.system.GroupDTO;
import com.lwc.cfdns.pojo.entity.SystemGroup;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lwc.cfdns.pojo.vo.system.GroupVO;

import java.util.Map;

/**
 * @author spring
 * @description 针对表【cfdns_system_group(后台组合数据表)】的数据库操作Service
 * @createDate 2023-07-12 14:30:04
 */
public interface SystemGroupService extends IService<SystemGroup> {

    /**
     * 创建
     *
     * @param groupDTO
     * @return Map<String, Object>
     * @throws
     * @version 1.0.0
     * @author luwc
     * @time 2023/7/12 14:45:58
     */
    Map<String, Object> create(GroupDTO groupDTO);

    /**
     * 修改
     *
     * @param groupDTO
     * @return Map<String, Object>
     * @throws
     * @version 1.0.0
     * @author luwc
     * @time 2023/7/12 14:48:15
     */
    Map<String, Object> update(GroupDTO groupDTO);

    /**
     * 详情
     *
     * @param id
     * @return GroupVO
     * @throws
     * @version 1.0.0
     * @author luwc
     * @time 2023/7/12 14:55:09
     */
    GroupVO view(Long id);

    /**
     * 删除
     *
     * @param ids
     * @return Map<String, Object>
     * @throws
     * @version 1.0.0
     * @author luwc
     * @time 2023/7/12 14:57:48
     */
    Map<String, Object> delete(String ids);

    /**
     * 列表
     *
     * @param groupBO
     * @return IPage<SystemGroup>
     * @throws
     * @version 1.0.0
     * @author luwc
     * @time 2023/7/12 15:06:53
     */
    IPage<SystemGroup> lists(GroupBO groupBO);
}
